<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<script>
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
function $(objID){
	return document.getElementById(objID);
}
function  showAddControl(){
	showDivControl('addControl',350,300); 
	 if(parent.document.body.scrollTop>0)
	parent.window.scroll(0,parent.document.body.scrollTop+20);
	 else parent.window.scroll(0,20);
 
	
}
</script>
<style>
body {
	font-size: 12px;
	font-family: Verdana, Arial, "宋体";
}

a:link {
	color: #464646;
	text-decoration: none;
}

a:visited {
	color: #464646;
	text-decoration: none;
}

a:hover {
	color: #ed145b;
	text-decoration: underline;
}

a:active {
	color: #ed145b;
	text-decoration: underline;
}

td {
	font-size: 12px
}

/*Date*/
.header {
	font: 12px Arial, Tahoma !important;
	font-weight: bold !important;
	font: 11px Arial, Tahoma;
	font-weight: bold;
	color: #154BA0;
	background: #C2DEED;
	height: 25px;
	padding-left: 10px;
}

.header td {
	padding-left: 10px;
}

.header a {
	color: #154BA0;
}

.header input {
	background: none;
	vertical-align: middle;
	height: 16px;
}

.category {
	font: 12px Arial, Tahoma !important;
	font: 11px Arial, Tahoma;
	color: #92A05A;
	height: 20px;
	background-color: #FFFFD9;
}

.category td {
	border-bottom: 1px solid #DEDEB8;
}

.expire,.expire a:link,.expire a:visited {
	color: #999999;
}

.default,.default a:link,.default a:visited {
	color: #000000;
}

.checked,.checked a:link,.checked a:visited {
	color: #FF0000;
}

.today,.today a:link,.today a:visited {
	color: #00BB00;
}

#calendar_year {
	display: none;
	line-height: 130%;
	background: #FFFFFF;
	position: absolute;
	z-index: 1005;
}

#calendar_year .col {
	float: left;
	background: #FFFFFF;
	margin-left: 1px;
	border: 1px solid #86B9D6;
	padding: 4px;
}

#calendar_month {
	display: none;
	background: #FFFFFF;
	line-height: 130%;
	border: 1px solid #86B9D6;
	padding: 4px;
	position: absolute;
	z-index: 1006;
}

.tableborder {
	background: white;
	border: 1px solid #86B9D6;
}

#year,#month {
	padding-right: 10px;
	background: url(/group/ui-component/calendar/js/onbottom.gif) no-repeat
		center right;
}
/*Date*/
</style>

<script language="javascript">
		function checkAddUserForm()
		{
		  if(AddUserForm.addUserName.value==""||AddUserForm.addUserName.value.replace(/(^\s*)|(\s*$)/g, "")=="")
		  {
			  alert("<c:out value='${context.msg_user_null}' />");
		   AddUserForm.addUserName.focus();
		   return false;
		  }
		  if(AddUserForm.pwd.value=="")
		  {
		  alert("<c:out value='${context.msg_pwd_null}' />");
		  AddUserForm.pwd.focus();
		  return false;
		  }
 
		  return true;
		}

 
			</script>

<title><c:out
	value="${context.user_management}-${context.title}" /></title>
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">

<body bottomMargin=0 leftMargin=10 topMargin=0 rightMargin=10
	marginheight="0">

<c:import url="/group/ui-component/divdialog/divdialog.html" />
<script type="text/javascript"
	src="/group/ui-component/calendar/js/calendar.js"></script>
<table cellpadding=0 cellspacing=0 width=100% align=center>
	<tr>
		<td><c:import url="/banner.jsp?currentPlatform=0" /></td>
	</tr>

	<tr>



		<td align=center width=100%>
		<table width=100% style="margin-top: 10px;">
			<tr>
				<c:if test="${isAdmin }">

					<td width=120 nowrap valign=top><c:import
						url="/group/adminMenu.jsp?currentPlatform=0&userShow=1" /></td>

				</c:if>

				<td>
				<table width=100% cellspacing=0 cellpadding=0>

					<tr bgcolor="#D6DDE1">
						<td style="height: 40px; font-size: 14px; width: 300px;"><a
							href="/group/userShow${context.postfix}"><b>${context.user_management}</b></a>


						<div id="addControl"
							style="display: none; scrolling: auto; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
						<form name="AddUserForm" onSubmit="return checkAddUserForm();"
							method=post
							action="/group/userShow<c:out value='${context.postfix}' />">
						<input type=hidden name=cmd value="addUser">
						<table align=center cellspacing=0 cellpadding=0
							style="border: 1px solid #d4d2d4;" width=100%>

							<tr bgcolor="orange">
								<td nowrap><img src="/group/images/winlogo.gif" border=0>&nbsp;<b><c:out
									value='${context.add_user}' /></b></td>
								<td align=right><img src="/group/images/close.gif"
									style="cursor: pointer;" onClick="hideDivControl('addControl')"
									border=0 /></td>
							</tr>


							<tr bgcolor="#ffffff">
								<TD style="height: 40px;" align=right><c:out
									value='${context.text_user_name }' />&nbsp;&nbsp;&nbsp;</TD>
								<TD><input type=text style="width: 160px"
									name="addUserName" maxlength="45" size="55"
									onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9_\@\.]/g,'')">


								<select name=isLock>
									<option value='0'>${context.text_public }</option>
									<option value='-1' selected>${context.text_hidden}</option>
								</select></TD>
							</TR>
							<tr bgcolor="#ffffff">
								<TD style="height: 40px;" align=right><c:out
									value='${context.text_pwd }' />&nbsp;&nbsp;&nbsp;</TD>
								<TD><input type=password name="pwd" maxlength="55"
									style="width: 160px" size="20"></TD>

							</TR>
							<TR>
								<TD style="height: 40px;" align=right><c:out
									value='${context.sys_admin }' />&nbsp;&nbsp;&nbsp;</TD>
								<td><select name=admin>
									<option value='false'>NO</option>
									<option value='true' selected>YES</option>
								</select></td>
							</TR>
							<tr bgcolor="#ffffff">

								<TD align=center colspan=2><input type=submit
									style="cursor: pointer;"
									value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
									style="cursor: pointer;" type=button
									onclick="hideDivControl('addControl')"
									value="<c:out value='${context.button_cancel}' />"></TD>
							</TR>
						</table>
						</form>
						</div>



						</td>
					<td>


						<form method=post
							action="/group/userShow<c:out value='${context.postfix}' />">
						<table cellpadding=0 cellspacing=0 width=100% align=center>

							<tr>
								<td align=left width=90 style="color: #808080"><c:out
									value='${context.sort_view}' /></td>
								<td align=left><select name=sort
									onchange="this.form.submit()">

									<option value="regTime"
										<c:if test="${param.sort=='regTime' }">selected</c:if>><c:out
										value='${context.reg_time}' /></option>
									<option value="lastTime"
										<c:if test="${param.sort=='lastTime' }">selected</c:if>><c:out
										value='${context.log_time}' /></option>
									<option value="loginNum"
										<c:if test="${param.sort=='loginNum' }">selected</c:if>><c:out
										value='${context.log_num}' /></option>
									<option value="admin"
										<c:if test="${param.sort=='admin' }">selected</c:if>><c:out
										value='${context.sys_admin}' /></option>
								</select></td>
							</tr>

						</table>
						</form>

						</td>
						<td width=200 align=right>
						<form action="/group/userShow<c:out value='${context.postfix}' />"
							method=post>
						<table cellpadding=0 cellspacing=0 width=100% align=right>
							<tr>
								<td width=80 nowrap style="color: #808080"><c:out
									value='${context.text_user_name}' />：</td>
								<td align=left nowrap><c:if test='${empty param.userName }'>
									<input type=text name="userName" size=20 maxlength=80>
								</c:if><c:if test='${not empty param.userName }'>
									<input type=text name="userName" size=20 maxlength=80
										value="<c:out value='${param.userName }' />">
								</c:if><input type=submit value=search
									style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"></td>
							</tr>


						</table>
						</form>
						</td>
					</tr>

					<tr bgcolor="f8f8f8">
						
					</tr>
					<tr>
						<td colspan=3  width=100%>
						<table width=100% cellpadding=0 cellspacing=0 >
							<tr bgcolor="#E3EEFB">
								<td style="font-weight: bold"  >${context.auto_follow_admin }</td><td align=right nowrap style="color: #808080; font-weight: bold;">${context.max_following}:<font color=red>${maxFollowingSize }</font>,${context.existing_following}:<font color=red>${existingFollowingSize}</font> </td>
							</tr>
							<tr>
								<td style="color:#808080" colspan=2>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="followUsers">
								${context.day_following } <input type=text size=4 maxlength=10
									name=dayAmount
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> &nbsp;${context.recent_days } <input
									type=text size=4 maxlength=10 name=days
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" />
									<input type=submit
									style="border: 0px; cursor: pointer; width:60px;height: 20px; font-size: 12px; color: #ffffff; background: #3399FF;"
									value="${context.button_ok}">
									</form>

								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td colspan=3  width=100%>
						<table width=100% cellpadding=0 cellspacing=0 >
							<tr bgcolor="#E3EEFB">
								<td style="font-weight: bold"  >${context.auto_follow_group }</td><td align=right nowrap style="color: #808080; font-weight: bold;">${context.max_following}:<font color=red>${maxFollowingGroups }</font>,${context.existing_following}:<font color=red>${existingFollowingGroups}</font> </td>
							</tr>
							<tr>
								<td style="color:#808080" colspan=2>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="followGroups">
								${context.day_following } <input type=text size=4 maxlength=10
									name=dayAmount
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> &nbsp;${context.recent_days } <input
									type=text size=4 maxlength=10 name=days
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" />
									<input type=submit
									style="border: 0px; cursor: pointer; width:60px;height: 20px; font-size: 12px; color: #ffffff; background:#3399FF;"
									value="${context.button_ok}">
									</form>

								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td colspan=3  width=100%>
						<table width=100% cellpadding=0 cellspacing=0 >
							<tr bgcolor="#E3EEFB">
								<td style="font-weight: bold"  >${context.auto_add_favourite }</td><td align=right nowrap style="color: #808080; font-weight: bold;">${context.max_favourite}:<font color=red>${maxFavourite }</font>,${context.existing_favourite}:<font color=red>${existingAddedFavourite}</font> </td>
							</tr>
							<tr>
								<td style="color:#808080" colspan=2>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="addFavourite">
								${context.day_favourites } <input type=text size=4 maxlength=10
									name=dayAmount
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> &nbsp;${context.recent_days } <input
									type=text size=4 maxlength=10 name=days
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" />
									<input type=submit
									style="border: 0px; cursor: pointer; width:60px;height: 20px; font-size: 12px; color: #ffffff; background: #3399FF;"
									value="${context.button_ok}">
									</form>

								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td colspan=3  width=100%>
						<table width=100% cellpadding=0 cellspacing=0 >
							<tr bgcolor="#E3EEFB">
								<td style="font-weight: bold"  >${context.auto_add_comment}</td><td align=right nowrap style="color: #808080; font-weight: bold;">${context.reply_templates}:<font color=red>${repliesCount }</font>,${context.public_reply_templates}:<font color=red>${publicRepliesCount}</font> </td>
							</tr>
							<tr>
								<td style="color:#808080" colspan=2>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="addComment">
							${context.target_messages }-		
								${context.date_start
								}&nbsp;<input type=text name="startDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" size=12> ${context.date_end }&nbsp;<input
									type=text name="endDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" size=12>	 
								${context.min_replies} <input type=text size=4 maxlength=10
									name=minReplies
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> &nbsp;${context.max_replies } <input
									type=text size=4 maxlength=10 name=maxReplies
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" />
									<input type=submit
									style="border: 0px; cursor: pointer; width:60px;height: 20px; font-size: 12px; color: #ffffff; background: #3399FF;"
									value="${context.button_ok}">
									</form>

								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
						<td width=100% colspan=3>
						<table width=100% cellpadding=0 cellspacing=0>
							<tr bgcolor="#E3EEFB">
								<td colspan="${analysisUnit+1}" style="font-weight: bold">
								${context.user_distribution }&nbsp;&nbsp;&nbsp;<input type=button
							onclick="showAddControl();"
							style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;"
							value="${context.add_user }">&nbsp; </td>
								<td align=right colspan="${analysisUnit}"
									style="color: #808080; font-weight: bold;">${context.text_all}:<font
									color=red>${all}</font>,&nbsp;${context.allocation_left}:<font
									color=red>${hidden}</font>,&nbsp;${context.text_today}:<font
									color=red>${todayAdded}</font></td>
							</tr>

							<tr>
								<td colspan="${analysisUnit*2+1}" style="color: #808080"
									align=right>
								<form action="/group/userShow${context.postfix }" method=post>${context.query_date
								}&nbsp;<input type=text name="inputDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"
									<c:if test="${not empty param.inputDate }">value="${param.inputDate }"</c:if>
									size=12><input type=submit
									style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: orange;"
									value="${context.display_allocation}"></form>
								</td>
							</tr>
							<tr>
								<c:forEach var="addedIndex" begin="0" end="${analysisUnit-1 }"
									step="1">
									<c:set var="dateCount" value="date${analysisUnit-addedIndex}" />
									<td align=center><input type=button
										style="color: #808080; cursor: pointer; font-size: 12px; width: 76;"
										onclick="window.location.href='/group/userShow${context.postfix}?inputDate=${requestScope[dateCount]}';"
										value="${requestScope[dateCount]}"></td>
								</c:forEach>
								<td align=center><input type=button value="${currentDate}"
									style="border: 0px; cursor: pointer; width: 76; height: 20px; font-size: 12px; color: #ffffff; background: #36518B;">
								</td>
								<c:forEach var="addedIndex" begin="1" end="${analysisUnit }"
									step="1">
									<c:set var="dateCount" value="date${-addedIndex}" />
									<td style="color: #808080; font-weight: bold;" align=center><input
										type=button
										style="color: #808080; cursor: pointer; font-size: 12px; width: 76;"
										onclick="window.location.href='/group/userShow${context.postfix}?inputDate=${requestScope[dateCount]}';"
										value="${requestScope[dateCount]}"></td>
								</c:forEach>


							</tr>
							<tr>
								<c:forEach var="addedIndex" begin="0" end="${analysisUnit-1}"
									step="1">
									<c:set var="addedCount" value="added${analysisUnit-addedIndex}" />
									<td align=center
										style="color: #808080; border-bottom: 1px solid #d2d4d2">
									${requestScope[addedCount]}</td>
								</c:forEach>
								<td align=center
									style="color: red; border-bottom: 1px solid #d2d4d2">
								${currentAdded}</td>
								<c:forEach var="addedIndex" begin="1" end="${analysisUnit }"
									step="1">
									<c:set var="addedCount" value="added${-addedIndex}" />
									<td align=center
										style="color: #808080; border-bottom: 1px solid #d2d4d2">
									${requestScope[addedCount]}</td>
								</c:forEach>
							</tr>
							<tr>
								<td colspan="${2*analysisUnit+1}" style="color: #808080"
									align=center>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="addAllocation">
								${context.allocation_increase_amount }&nbsp;<input type=text
									size=5 maxlength=10 name=count
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> ${context.allocation_start
								}&nbsp;<input type=text name="startDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"
									<c:if test="${not empty param.startDate }">value="${param.startDate }"</c:if>
									size=12> ${context.allocation_end }&nbsp;<input
									type=text name="endDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"
									<c:if test="${not empty param.endDate }">value="${param.endDate }"</c:if>
									size=12> <input type=submit
									style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: brown;"
									value="${context.increase_allocation}"></form>


								</td>
							</tr>
							<tr>
								<td colspan="${2*analysisUnit+1}" style="color: #808080"
									align=center>
								<form action="/group/userShow${context.postfix }" method=post><input
									type=hidden name="cmd" value="reduceAllocation">
								${context.allocation_reduce_amount }&nbsp;<input type=text
									size=5 maxlength=10 name=count
									onkeyup='this.value=this.value.replace(/[^0-9]D*$/,"")'
									ondragenter="return false"
									onpaste="return !clipboardData.getData('text').match(/D/)"
									style="ime-mode: disabled;" /> ${context.allocation_start
								}&nbsp;<input type=text name="startDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"
									<c:if test="${not empty param.startDate }">value="${param.startDate }"</c:if>
									size=12> ${context.allocation_end }&nbsp;<input
									type=text name="endDate" readonly="readonly"
									onClick="showcalendar(event, this);"
									onFocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''"
									<c:if test="${not empty param.endDate }">value="${param.endDate }"</c:if>
									size=12> <input type=submit
									style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: green;"
									value="${context.reduce_allocation}"></form>


								</td>


							</tr>


						</table>
						</td>
					</tr>
					<tr>
						<td colspan=3>
						<table cellpadding=0 cellspacing=0 width=100% align=center
							style="margin-top: 10px; font-color: #808080">
							<tr bgcolor=#E3EEFB>
								<td align=left height=20>ID</td>
								<td width=16%><c:out value='${context.text_user_name}' /></td>
								<td width=18%><c:out value='${context.reg_time}' /></td>
								<td width=18%><c:out value='${context.last_access}' /></td>
								<td width=6%><c:out value='${context.log_num}' /></td>
								<td width=16%>EMAIL</td>
								<td width=18%><c:out value='${context.operation}' /></td>
							</tr>

							<c:forEach var="user" items="${users }">
								<c:url value="viewUser${context.postfix}" var="userUrl">
									<c:param name="targetUserName" value="${user.userName }" />
								</c:url>
								<tr <c:if test="${user.isLock==-1 }">bgcolor=#c8c8c8</c:if>>
									<td align=left height=20 style="color: #808080"><c:out
										value='${user.id }' /></td>
									<td style="color: #808080" valign=top><a
										href="/group/${userUrl }"><c:if
										test="${not empty user.avatar&&fn:indexOf(user.avatar,'upload')!=-1 }">
										<img src="${user.avatar}" width=24 border=0 />
									</c:if><c:if
										test="${empty user.avatar||fn:indexOf(user.avatar,'upload')==-1 }">
										<img src="/group/images/avatar/avatar.jpg" width=24 border=0 />
									</c:if><c:out value='${user.userName }' /></a></td>
									<td style="color: #808080"><c:out value='${user.regTime }'
										default='&nbsp;' escapeXml="false" /></td>
									<td style="color: #808080"><c:out
										value='${user.lastTime }' default='&nbsp;' escapeXml="false" /></td>
									<td style="color: #808080"><c:out
										value='${user.loginNum }' default='&nbsp;' escapeXml="false" /></td>
									<td style="color: #808080"><c:out value='${user.email}'
										default='&nbsp;' escapeXml="false" /></td>
									<td style="color: #808080"><c:url
										value="userShow${context.postfix}" var="userShowUrl">
										<c:param name="name" value="${user.userName }" />
									</c:url> <c:set var="userAccess" value="${user.id }isAdmin" /> <c:if
										test="${!(requestScope[userAccess])}">
										<input type=button
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #A3A174;"
											onclick='window.location.href="/group/${userShowUrl}&toAdmin=on";'
											value='${context.upgrade }'>
									</c:if> <c:if
										test="${(requestScope[userAccess])&&user.userName!=session_user.userName&&user.userName!='root'}">
										<input type=button
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #808080;"
											onclick='window.location.href="/group/${userShowUrl}&toUser=on";'
											value='${context.degrade }'>
									</c:if><c:if test="${(!requestScope[userAccess])}"> &nbsp;<input
											type=button
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: RED;"
											value='${context.del }'
											onclick='if(window.confirm("${context.msg_del_now }")){window.location.href="/group/userShow${context.postfix}?del=1&uid=${user.id }";return true;}else{return false;}'>

									</c:if>&nbsp;<c:if
										test="${user.isLock==0 &&(!requestScope[userAccess])}">
										<input type=button value='${context.lock }'
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: #484848;"
											onclick='if(window.confirm("${context.msg_unlock_now }")){window.location.href="/group/userShow${context.postfix}?lock=1&uid=${user.id }";return true;}else{return false;}'>
									</c:if><c:if test="${user.isLock==1 }">
										<input type=button value='${context.unlock }'
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: GREEN"
											onclick='if(window.confirm("${context.msg_unlock_now }")){window.location.href="/group/userShow${context.postfix}?unlock=1&uid=${user.id }";return true;}else{return false;}'>
									</c:if><c:if test="${user.isLock==-1 }">
										<input type=button value='${context.text_public }'
											style="border: 0px; cursor: pointer; height: 20px; font-size: 12px; color: #ffffff; background: GREEN"
											onclick='window.location.href="/group/userShow${context.postfix}?unlock=-1&uid=${user.id }";'>
									</c:if></td>
								</tr>

							</c:forEach>



							<tr bgcolor="#ffffff">
								<td align=right colspan=7><c:out
									value='${context.msg_page_max}' /> <font color=blue> <b><c:out
									value='${unit}' /> </b> </font><c:out value='${context.text_item}' />，<c:out
									value='${context.text_all}' /> <font color=blue> <b><c:out
									value='${all}' /> </b> </font><c:out value='${context.text_item}' />&nbsp;&nbsp;
								<br>
								<c:out value='${context.current_page}' />： <font color=blue><b><c:out
									value='${intpageid}' /> </b> </font>/ <font color=blue> <b><c:out
									value='${pagenums}' /> </b> </font> <c:if test="${intpageid>1 }">
									<c:set var="url"
										value="userShow${context.postfix}?pageid=${intpageid-1 }" />
									<c:if test="${not empty param.sort }">
										<c:set var="url" value="${url }&sort=${param.sort }" />
									</c:if>
									<c:if test="${not empty param.userName }">
										<c:set var="url" value="${url }&userName=${param.userName }" />
									</c:if>
									<a href="${url }"><c:out value='${context.previous_page}' /></a>
								</c:if> <c:if test="${ntpageid<pagenums }">
									<c:set var="url"
										value="userShow${context.postfix}?pageid=${intpageid+1 }" />
									<c:if test="${not empty param.sort }">
										<c:set var="url" value="${url }&sort=${param.sort }" />
									</c:if>
									<c:if test="${not empty param.userName }">
										<c:set var="url" value="${url }&userName=${param.userName }" />
									</c:if>
									<a href="${url }"><c:out value='${context.next_page}' /></a>
								</c:if> <c:set var="urlFragment" value="userShow${context.postfix}?" />
								<c:if test="${not empty param.sort }">
									<c:set var="urlFragment"
										value="${urlFragment }sort=${param.sort }&" />
								</c:if> <c:if test="${not empty param.userName }">
									<c:set var="urlFragment"
										value="${urlFragment }&userName=${param.userName }&" />
								</c:if> &nbsp;<c:out value='${context.text_to}' /> <SELECT
									onChange="javascript:window.location='<c:out value='${urlFragment}' />pageid='+this.options[this.selectedIndex].value;"
									size=1 name=page>
									<c:set var="current" value="0" />
									<c:forEach begin="1" end="${pagenums}" step="1">
										<c:set var="current" value="${current+1 }" />
										<option value="${current}"
											<c:if test="${current==intpageid }">selected</c:if>><c:out
											value="${current}" /></option>
									</c:forEach>
								</select> <c:out value='${context.text_page}' />&nbsp;&nbsp;</td>
							</tr>


						</table>

						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td><BR>
		<BR>
		<c:import url="/footer.jsp" /></td>
	</tr>
	<c:if test="${not empty msg}">
		<script>alert('${msg }')</script>
	</c:if>

</table>